import { FastBridge } from "./core/MessageManager";

// 导出主类
export { FastBridge } from "./core/MessageManager";

// 默认导出 FastBridge 类
export { FastBridge as default } from "./core/MessageManager";

// 为了浏览器直接引用，将 FastBridge 挂载到全局
if (typeof window !== "undefined") {
  (window as any).FastBridge = FastBridge;
}

// 导出类型
export type {
  BridgeOptions,
  BridgeMessage,
  MessageType,
  PendingRequest,
  EventCallback,
  MethodHandler,
} from "./types/index";

// 导出工具类
export { Logger, BridgeError } from "./utils";

// 导出事件总线
export { EventBus } from "./core/EventBus";
